package threading;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-04-28
 * Time: 14:18
 */
public class ThreadDemo12 {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();
        System.out.println("wait之前~");
        synchronized (object) {
            object.wait();
        }
        System.out.println("wait之后~");
    }
}
